import request from "@/utils/request";

// 资源池数据列表
export function add(data) {
    return request({
      url: "/weekly",
      method: "post",
        data
    });
  }
  export function ed(data) {
    return request({
      url: "/weekly",
      method: "put",
      data
    });
  }
  export function detalii(data) {
    return request({
      url: `/weekly/${data}`,
      method: "get",
    });
  }
  export function getList00(data) {
    return request({
      url: "/weekly/list",
      method: "get",
      params:data
    });
  }
  // 阅读记录
  export function readList(data) {
    return request({
      url: `/weekly/read/list`,
      method: "get",
      params:data
    });
  }
  // 阅读记录
  export function commSure(data) {
    return request({
      url: `/weekly/read`,
      method: "post",
      data
    });
  }
  export function check(data) {
    return request({
      url: `/weekly/check`,
      method: "get",
      data
    });
  }
  // 获取日期
  export function weekDate(data) {
    return request({
      url: `/weekly/weekDate`,
      method: "get",
      data
    });
  }
  export function user() {
    return request({
      url:'/weekly/user/list',
      method: "get",
    })
  }
  export function exchange(data) {
    return request({
      url:'/system/exchange/list',
      method: "get",
      params:data
    })
  }